package com.iversonx.bridge.example_1.v3.msg.urgency.impl;

import com.iversonx.bridge.example_1.v3.msg.urgency.UrgencyMessageService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 发送消息至站内信
 **/
public class SMSUrgencyMessageService implements UrgencyMessageService {
    private static final Logger LOGGER = LoggerFactory.getLogger(
            SMSUrgencyMessageService.class);
    
    @Override
    public boolean support(String type) {
        return "sms-urgency".equalsIgnoreCase(type);
    }
    
    @Override
    public void send(String message, String toUser) {
        LOGGER.info("[加急]发送消息[{}]至{}的站内信", message, toUser);
    }
    
    @Override
    public Object watch(String messageId) {
        LOGGER.info("获取加急站内信消息处理进度");
        return null;
    }
}
